//
//  ModInfoView.m
//  fitness-iOS
//
//  Created by 卢仕彤 on 2018/1/5.
//  Copyright © 2018年 卢仕彤. All rights reserved.
//

#import "ModInfoView.h"

@implementation ModInfoView

@end

@interface BaseSetInfoCell ()

@end

@implementation BaseSetInfoCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initView];
    }
    return self;
}

- (void)initView {
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    //设置cell的上线的线
    UIView *topView = [UIView new];
    [self.contentView addSubview:topView];
    [topView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.contentView.mas_top);
        make.left.equalTo(self.contentView.mas_left);
        make.right.equalTo(self.contentView.mas_right);
        make.height.equalTo(@(0.5));
    }];
    
    UIView *bottomView = [UIView new];
    [self addSubview:bottomView];
    [bottomView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.equalTo(self.contentView.mas_bottom);
        make.left.equalTo(self.contentView.mas_left);
        make.right.equalTo(self.contentView.mas_right);
        make.height.equalTo(@(0.5));
    }];
    
    _oneTextFiled = [UITextField new];
    _oneTextFiled.tag = 101;
    _oneTextFiled.clearButtonMode = UITextFieldViewModeWhileEditing;
    _oneTextFiled.font = [UIFont systemFontOfSize:14];
    _oneTextFiled.textAlignment = NSTextAlignmentLeft;
    _oneTextFiled.tintColor = [UIColor colorWithHexString:@"#24ABA6"];
    [self.contentView addSubview:_oneTextFiled];
    [_oneTextFiled mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView.mas_left).offset(17);
        make.height.equalTo(self.contentView.mas_height);
        make.centerX.equalTo(self.contentView.mas_centerX);
    }];
    
}

@end


